import React from 'react';

import {createAppContainer} from 'react-navigation';
import {createStackNavigator} from 'react-navigation-stack';
import TabContainer from "./TabContainer";
import AboutUs from '../pages/user/AboutUs';
import FeedBack from '../pages/user/FeedBack';
import Favorite from '../pages/user/Favorite';
import Security from '../pages/user/security/Security';
import EditEmail from '../pages/user/security/EditEmail';
import EditMobile from '../pages/user/security/EditMobile';
import EditPass from '../pages/user/security/EditPass';
import AMapView from '../pages/common/AMapView';
import QRScanner from '../pages/common/QRScanner';
import SearchView from '../pages/common/SearchView';
import DistrictSelector from '../pages/common/DistrictSelector';
import NewsIndex from '../pages/news/NewsIndex';
import NewsDetail from '../pages/news/NewsDetail';
import Signin from '../pages/auth/Signin';
import Signup from '../pages/auth/Signup';
import MyProfile from "../pages/user/profile/MyProfile";
import CourseIndex from "../pages/course/CourseIndex";
import CourseDetail from "../pages/course/CourseDetail";
import MyCourse from "../pages/user/MyCourse";


const StackNavigator = createStackNavigator({
    TabContainer: {
        screen: TabContainer,
        navigationOptions: {
            header: null
        }
    },
    AboutUs,
    FeedBack,
    Favorite,
    Security,
    EditEmail,
    EditMobile,
    EditPass,
    Signin,
    Signup,
    AMapView,
    QRScanner,
    SearchView,
    DistrictSelector,
    NewsIndex,
    NewsDetail,
    MyProfile,
    MyCourse,
    CourseIndex,
    CourseDetail,

}, {
    headerMode: 'screen'
});

export default createAppContainer(StackNavigator);
